package nl.ceasaro.jeslee.webapp.example.action;

import com.opensymphony.xwork2.ActionSupport;


/**
 * Created by IntelliJ IDEA.
 * User: cees
 * Date: Oct 11, 2008
 * Time: 12:04:27 AM
 * <p>
 * Simple action to demonstrate struts.
 * </p>
 */
public class ExampleAction extends ActionSupport
{
   private static final long serialVersionUID = -4183448728689965162L;
   public static final String MESSAGE = "Struts is up and running ...";

   @Override
   public String execute() throws Exception
   {
      setMessage(MESSAGE);
      return SUCCESS;
   }

   private String message;

   public void setMessage(String message)
   {
      this.message = message;
   }

   public String getMessage()
   {
      return message;
   }

}
